<?php

/*
 * Object/PlanningPeriode.php
 */

namespace RHX\Model\Object;

class PlanningPeriode {

    public $id;
    public $periode_id;
    public $semaine_id;
    public $template;

    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    public function exchangeArray($data) {
	$this->id		 = isset($data['id']) ? $data['id'] : null;
	$this->periode_id	 = isset($data['periode_id']) ? $data['periode_id'] : null;
	$this->semaine_id	 = isset($data['semaine_id']) ? $data['semaine_id'] : null;
	$this->template		 = isset($data['template']) ? $data['template'] : null;
    }

    public function getArrayCopy() {
	return get_object_vars($this);
    }

}

?>
